*{margin: 0;padding: 0;}
html{height: 100%;}
body{height: 100%;}
div{width: 300px;height: 50px;border:10px solid yellow;}
span{display: block;width: 100%;height: 100%;background-color: red;}